Filename: /text/sbasic/shared/03020407.xhp
(section: filedatetime)
(bookmark: bm_id3153361)
FileDateTime function
FileDateTime 関数
FileDateTime Function [Runtime]
FileDateTime 関数 [実行時](hd_id3153361.1)
Returns a string that contains the date and the time that a file was created or last modified.
ファイルが作成ないし最後に変更された日付および時刻を、文字列として返します。(par_id3156423.2)
(/section: filedatetime)
Syntax:
構文:(hd_id3154685.3)
FileDateTime (Text As String)
FileDateTime (Text As String)(par_id3154124.4)
Parameters:
パラメータ:(hd_id3150448.5)
Text: Any string expression that contains an unambiguous (no wildcards) file specification. You can also use URL notation.
Text: ファイルの位置を明示的に指定した文字列表式 (ワイルドカードは使用不可)。またURL 指定を用いることもできます。(par_id3159153.6)
This function determines the exact time of creation or last modification of a file, returned in the format "MM.DD.YYYY HH.MM.SS".
この関数は、指定ファイルの作成ないし最終変更された時間を取得するもので、結果は「YYYY/MM/DD HH:MM:SS」の形式で返します。(par_id3155306.7)
(embed text/sbasic/shared/00000003.xhp#languageformat : linkinfo)
You can set the locale used for controlling the formatting numbers, dates and currencies in Office Basic in (in case of MAC)Office - Preferences(/in case of MAC)(in other case)Tools - Options(/in other case) - Language Settings - Languages. In Basic format codes, the decimal point (.) is always used as placeholder for the decimal separator defined in your locale and will be replaced by the corresponding character.
[PO-fuzzy@sbasic\shared.po] ※※※未訳※※※(par_id3153381.102)
The same applies to the locale settings for date, time and currency formats. The Basic format code will be interpreted and displayed according to your locale setting.
これは、日付、時間、通貨の書式設定とロケールの関係についても同様です。Basic の書式コードは、個々のロケール設定に応じて、適切な表示に変換されます。(par_id3150870.103)
(/embed text/sbasic/shared/00000003.xhp#languageformat)
Example:
例:(hd_id3146119.8)
Sub ExampleFileDateTime
Sub ExampleFileDateTime(par_id3148576.9)
msgbox FileDateTime("C:\autoexec.bat")
msgbox FileDateTime("C:\autoexec.bat")(par_id3161831.10)
end sub
end sub(par_id3146986.11)
< Prev /
Next >